package com.xy.annotaion.handler.loader;

import com.xy.annotaion.handler.common.log.LogService;
import org.springframework.boot.env.PropertySourceLoader;
import org.springframework.core.env.PropertySource;
import org.springframework.core.io.Resource;

import java.io.IOException;
import java.util.List;

/**
 * @author Dell
 */
public class TestPropertySourceLoaderImpl implements PropertySourceLoader, LogService {
    @Override
    public String[] getFileExtensions() {
        log();
        return new String[0];
    }

    @Override
    public List<PropertySource<?>> load(String name, Resource resource) throws IOException {
        log(name, resource);
        return null;
    }
}
